import request from '@/plugins/request';

// 站点列表
export function siteindexlist (data) {
    return request({
        url: '/v1/site/index/list',
        method: 'get',
        params: data
    });
}

// 自动上传任务列表
export function siteindexuploadqueuelist (data) {
    return request({
        url: '/v1/site/index/upload-queue-list',
        method: 'get',
        params: data
    });
}

// 推送日志列表
export function siteindexyhloglist (data) {
    return request({
        url: '/v1/site/index/yh-log-list',
        method: 'get',
        params: data
    });
}

// 站点日志列表
export function siteindexloglist (data) {
    return request({
        url: '/v1/site/index/log-list',
        method: 'get',
        params: data
    });
}

// 站点详情
export function siteindexinfo (data) {
    return request({
        url: '/v1/site/index/info',
        method: 'get',
        params: data
    });
}

// 新增站点详情
export function siteindexcreateinfo (data) {
    return request({
        url: '/v1/site/index/create-info',
        method: 'get',
        params: data
    });
}
// 素材库管理服务器处理所有
export function settinginfo (data) {
    return request({
        url: '/v1/material/setting/edit-info',
        method: 'get',
        params: data
    });
}
// 新增站点
export function siteindexcreate (data) {
    return request({
        url: '/v1/site/index/create',
        method: 'post',
        data
    });
}

// 更新站点
export function siteindexupdate (data) {
    return request({
        url: '/v1/site/index/update',
        method: 'post',
        data
    });
}

// 删除站点
export function siteindexdelete (data) {
    return request({
        url: '/v1/site/index/delete',
        method: 'post',
        data
    });
}

// 上传站点
export function siteindexupload (data) {
    return request({
        url: '/v1/site/index/upload',
        method: 'post',
        data
    });
}

// 定时上传站点
export function siteindexuploadcron (data) {
    return request({
        url: '/v1/site/index/upload-cron',
        method: 'post',
        data
    });
}

// 站点配置【五合一】
export function siteindexeditconfig (data) {
    return request({
        url: '/v1/site/index/edit-config',
        method: 'post',
        data
    });
}
// http账号绑定
export function saveBindssl (data) {
    return request({
        url: '/v1/site/index/bind-ssl',
        method: 'post',
        data
    });
}
// 绑定专题/二级栏目保存
export function saveBzt (data) {
    return request({
        url: '/v1/site/index/bind-zt',
        method: 'post',
        isUpload: true,
        data
    });
}
// 绑定301
export function saveRedirect (data) {
    return request({
        url: '/v1/site/index/bind-redirect',
        method: 'post',
        isUpload: true,
        data
    });
}
//绑定301【跳转到当前站点】
export function bindredirectSite (data) {
    return request({
        url: '/v1/site/index/bind-redirect-to-site',
        method: 'post',
        isUpload: true,
        data
    });
}
// 遮罩配置
export function saveSet (data) {
    return request({
        url: '/v1/site/index/set-zz',
        method: 'post',
        isUpload: true,
        data
    });
}
// 优化配置保存
export function saveOptimize (data) {
    return request({
        url: '/v1/site/index/set-yh',
        method: 'post',
        isUpload: true,
        data
    });
}
// 获取站点状态码
export function statusCode (data) {
    return request({
        url: '/v1/site/index/get-http-status-code',
        method: 'get',
        params: data
    });
}
// 更新站点备注
// /v1/site/index/update-remark
export function updateRemark (data) {
    return request({
        url: '/v1/site/index/update-remark',
        method: 'post',
        data
    });
}
// 获取nigx配置
/// v1/site/index/nginx-config-info
export function configInfo (data) {
    return request({
        url: 'v1/site/index/nginx-config-info',
        method: 'get',
        params: data
    });
}
// 更新nigx配置
/// v1/site/index/update-nginx-config
export function updateNginx (data) {
    return request({
        url: 'v1/site/index/update-nginx-config',
        method: 'post',
        data
    });
}
// 检验删除站点
export function checkDelete (data) {
    return request({
        url: '/v1/site/index/check-delete',
        method: 'get',
        params: data
    });
}
// 首页跳转设置
export function indexLoction (data) {
    return request({
        url: '/v1/site/index/set-index-location',
        method: 'post',
        isUpload: true,
        data
    });
}
// 获取站点证书文件信息
export function sslInfo (data) {
    return request({
        url: '/v1/site/index/ssl-info',
        method: 'get',
        params: data
    });
}
// 证书检验数据
export function checksslData (data) {
    return request({
        url: '/v1/site/index/check-ssl-data',
        method: 'post',
        isUpload: true,
        data
    });
}
// 证书保存
export function bindsslData (data) {
    return request({
        url: '/v1/site/index/bind-ssl-data',
        method: 'post',
        isUpload: true,
        data
    });
}
// 取消绑定证书
export function cancelBindssl (data) {
    return request({
        url: '/v1/site/index/cancel-bind-ssl',
        method: 'post',
        data
    });
}
// 获取站点其他共用站点
export function getcommonList (data) {
    return request({
        url: '/v1/site/index/get-common-list',
        method: 'get',
        params: data
    });
}
// 特别关注
export function status (data) {
    return request({
        url: '/v1/site/index/update-member-focus',
        method: 'post',
        data
    });
}
// 站点日志列表查询
export function getlogList (data) {
    return request({
        url: '/v1/site/index/log-list',
        method: 'get',
        params: data
    });
}
// 重置本地ftp
export function reateLocalftptus (data) {
    return request({
        url: '/v1/site/index/recreate-local-ftp',
        method: 'post',
        data
    });
}
// 重置线上ftp
export function recreateOnlineftp (data) {
    return request({
        url: '/v1/site/index/recreate-online-ftp',
        method: 'post',
        data
    });
}
// 重置数据库

export function recreatedb (data) {
    return request({
        url: '/v1/site/index/recreate-db',
        method: 'post',
        data
    });
}
// 彻底删除站点

export function deletetrue (data) {
    return request({
        url: '/v1/site/index/delete-true',
        method: 'post',
        data
    });
}
// 初始化站点
export function initsite (data) {
    return request({
        url: '/v1/site/index/init-site',
        method: 'post',
        data
    });
}
